<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue2响应式原理object.defineProperty</title>
    <style>
        .box {
            width: 300px;
            padding: 20px;
            margin: 20px auto;
            background-color: #f9f9f9;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .box:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

        .box h2 {
            margin-top: 0;
            color: #333;
        }

        .box p {
            color: #666;
        }
    </style>
</head>
<body>
    <div class="box">
        <h2>个人信息</h2>
        <p>姓: <span id="firstname">三</span></p>
        <p>名: <span id="lastname">张</span></p>
        <p>年龄: <span id="age">25</span></p>
        <input type="text" placeholder="请输入姓名" onchange="user.name=this.value" />
    </div>
    <script src="./sjc.js"></script>
    <script src="./index.js"></script>
</body>
</html>